home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
bbs
/
revup10.zip
/
REVUP.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-11-08
|
3KB
|
83 lines
@echo off
if "%3"=="fpick" goto fpick
set fpick=%3
goto havefile
:fpick
cd \max
echo Other nodes Inactive >alfnode.flg
for %%F in (ACTIVE*.BBS) do if not %%F==ACTIVE%5.BBS del alfnode.flg
if not exist alfnode.flg echo.
if not exist alfnode.flg echo Another node may be using the database.
if not exist alfnode.flg echo FILES.* not hidden from File Selector.
if exist alfnode.flg if exist %1\files.* attrib +h %1\files.*
fpick /M%1\*.* /CB /Fname /Xjunktemp.bat /P"@set fpick=">junktemp.bat
if exist alfnode.flg if exist %1\files.* attrib -h %1\files.*
if exist alfnode.flg del alfnode.flg
call junktemp.bat
del junktemp.bat
if (%fpick%)==(:ESC) echo You did not pick a file.>\max\misc\revup.dat
if (%fpick%)==(:ESC) goto end
if (%fpick%)==(:0) echo Empty or invalid directory.>\max\misc\revup.dat
if (%fpick%)==(:0) goto end
:havefile
cd \max\misc
if %4==COM0 goto COM0
echo.
echo.>%4
echo
Searching upload log..
.
echo
Searching upload log..
.
>%4
copy revup.nlf revuptmp.bat>nul
type %2|find /i "\%fpick% ">> revuptmp.bat
if errorlevel 1 goto :notfound
type revuptmp.bat| find /c /i "\%fpick% ">revup.cnt
find "1" revup.cnt > nul
if errorlevel 1 goto plusone
goto found
:plusone
echo
echo
>%4
type revup.cnt
type revup.cnt>%4
echo ACentries found for
`
%fpick%
'
echo ACentries found for
`
%fpick%
'>%4
echo.
echo.>%4
echo
Searching for most recent..
.
echo
Searching for most recent..
.
>%4
goto plus2
:COM0
echo.
echo
Searching upload log..
.
copy revup.nlf revuptmp.bat>nul
type %2|find /i "\%fpick% ">> revuptmp.bat
if errorlevel 1 goto :notfound
type revuptmp.bat| find /c /i "\%fpick% ">revup.cnt
find "1" revup.cnt > nul
if errorlevel 1 goto plus1
goto found
:plus1
echo
type revup.cnt
echo ACentries found for
`
%fpick%
'
echo.
echo
Searching for most recent..
.
:plus2
type revuptmp.bat| find /v /I "revuprun">btmp.tmp
copy revup.nlf revuptmp.bat>nul
type btmp.tmp>>revuptmp.bat
type revuptmp.bat |find /c /i "\%fpick% ">revup2.cnt
find "1" revup2.cnt > nul
if errorlevel 1 goto plus2
del btmp.tmp
del revup2.cnt
:found
call revuptmp.bat
goto :end
:notfound
echo %fpick% not found in upload log> revup.non
echo ƒ %fpick% Å not found in upload log> revup.dat
echo Å>> revup.dat
echo P%fpick%> revup.fil
:end
set fpick=